﻿using System.Collections.Generic;
using System.Runtime.Serialization;
using LiSA_Server.Base.AbstractContracts;
using LiSA_Server.Base.Factories;
using LiSA_Service.ResearchProjects.Actioners;
using LiSA_Service.ResearchProjects.Models;

namespace LiSA_Service.ResearchProjects.Dto.Commands
{
    [DataContract]
    public class SaveOrUpdateArticleFeedbackCommand : Command
    {
        [DataMember]
        public List<ArticleFeedback> ArticleFeedbacks { get; set; }

        public override void Execute()
        {
            ActionerFactory.Instance.Get<ProjectActioner>().SaveOrUpdateFeedback(this);
        }
    }
}